#coding=utf-8
import sys
from app import app
import eventlet
from eventlet import wsgi
#import locale

#locale.setlocale(locale.LC_ALL,'')

#eventlet.monkey_patch()

port=5002
if len(sys.argv)>1:
    try:
        port=int(sys.argv[1])
    except:
        pass

#app.debug=True
wsgi.server(eventlet.listen(('0.0.0.0', port)),app)
